/*
 * @Author: likang xie
 * @Date: 2020-09-28 16:45:31
 * @Purpose: u-view主题色修改
 */

// 所有变量
$u-main-color: #444444;
$u-white-color: #ffffff;
$u-content-color: #bcbcbc;
$u-tips-color: #828282;
$u-light-color: #ebebeb;
$u-border-color: #bcbcbc;
$u-bg-color: #ebebeb;
$u-mask-color: rgba(
  $color: $u-main-color,
  $alpha: 0.5,
);

$u-type-primary: #3b79fe;
$u-type-primary-disabled: #cee7ff;
$u-type-primary-dark: #0762bf;
$u-type-primary-light: #cee7ff;

$u-type-warning: #f5a824;
$u-type-warning-disabled: #fbe4bd;
$u-type-warning-dark: #f29100;
$u-type-warning-light: #fbe4bd;

$u-type-success: #4dc822;
$u-type-success-disabled: #8fdc75;
$u-type-success-dark: #18b566;
$u-type-success-light: #8fdc75;

$u-type-error: #f02323;
$u-type-error-disabled: #f7bebc;
$u-type-error-dark: #dd6161;
$u-type-error-light: #f7bebc;

$u-type-blue: #2979ff;
$u-type-blue-disabled: #cee7ff;
$u-type-blue-dark: #0762bf;
$u-type-blue-light: #cee7ff;

$u-type-info: #ebebeb;
$u-type-info-disabled: #c8c9cc;
$u-type-info-dark: #82848a;
$u-type-info-light: #c8c9cc;

$u-form-item-height: 70rpx;
$u-form-item-border-color: $u-border-color;

// 类名控制
@each $name,
  $color
    in (
      main: $u-main-color,
      white: $u-white-color,
      content: $u-content-color,
      tips: $u-tips-color,
      light: $u-light-color,
      border: $u-border-color,
      bg: $u-bg-color,
      mask: $u-mask-color,
      primary: $u-type-primary,
      success: $u-type-success,
      warning: $u-type-warning,
      error: $u-type-error,
      blue: $u-type-blue,
      info: $u-type-info
    )
{
  .u-cl-#{$name} {
    color: $color;
  }

  .u-bcl-#{$name} {
    background-color: $color;
  }
}
